<#import "../macro/components.ftl" as components/>
<#include "../macro/layout_default.ftl"/>
<@head>
<link rel="stylesheet" href="/misc/app/css/generalset_list.css"/>
</@head>
<@body>
<script src="/misc/app/js/generalset_list.js"></script>
</@body>

<@layout_default>

    <div class="box-body">
     <form class="form-horizontal" name="form_new_generalset" >
        <table  class="table table-striped table-hover">
            <tr>
                <th class="generalset_tr">项目</th>
                <th class="generalset_tr">参数</th>
                <th class="generalset_tr">描述</th>
            </tr>
            <#if (GeneralSetList?size > 0)>
                <#list GeneralSetList as item>
                
                    <tr>
                        <td class="generalset_tr">${item.setupname}</td>
                        <td class="generalset_tr">
                        <#if item.setuptype?exists>
                           <input type="hidden"  name="setuptype" id="${item.id}" value="${item.setuptype}"/>
                           <!-- <input type="hidden"  name="id"  value="${item.id}"/> -->
		                   <#if item.setuptype==0>
	                   			<input type="text" class="form-control" placeholder="项目参数" name="setupvalue" id="setupvalue_${item.id}" value="${item.setupvalue}"/>
		                   <#else>
		                   		<div class="col-sm-5" style="padding-top:7px;width:100%">
                                   <#list item.itemInfoList as it>
                                       <input type="radio" name="setupvalue_${item.id}"  value="${it.value}" <#if item.setupvalue == it.value>checked="checked"</#if> />
                                        ${it.display}
                                       <#--<input type="radio" name="setupvalue_${item.id}"  value="${it.value}" <#if item.setupvalue == ${it.value}>checked="checked"</#if> />-->
                                   </#list>
				                </div>
		                   </#if>
		                <#else>
		                	<input type="text" class="form-control" placeholder="项目参数" name="setupvalue" id="setupvalue_${item.id}"  value="${item.setupvalue}"/>
		                </#if>
                        </td>
                        <td class="generalset_tr">
                        ${item.setupdescribe}
                        </td>
                    </tr>
                </#list>
            <#else>
                <tr>
                    <td class="text-center text-muted" colspan="6"><i class="fa fa-info-circle"></i> 没有记录</td>
                </tr>
            </#if>
        </table>
        <table class="table table-striped table-hover">
       
       	<tr>
	       	<td>
	       	 <button type="button" class="btn btn-warning" name="btn_save"><i class="glyphicon glyphicon-saved"></i> 保存</button>&nbsp; &nbsp; &nbsp;
	       	</td>
       		<#--<td colspan="13" style="text-align:right;background-color:white;">-->
       		    <#--<a href="javascript:void(0);" name="btn_export"><i class="glyphicon glyphicon-save"></i> 数据导出</a>-->
       		<#--</td>-->
       	</tr>
    </table>
    </form>
    </div>
    
</@layout_default>

